package com.example.keepserver.repository;

import com.example.keepserver.model.Route;
import com.example.keepserver.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RouteRepository extends JpaRepository<Route, String> {
    
    List<Route> findByAuthor(User author);
    
    List<Route> findByLocation(String location);
} 